<?php

namespace app\http\middleware;

class AdminLogin
{
    public function handle($request, \Closure $next)
    {
        if(!session('?admin_user')){
            return redirect(url('admin'));
        }
        return $next($request);
    }
}
